<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery.js"></script>
    <link rel="stylesheet" href="css/sui-append.min.css">
    <link rel="stylesheet" href="css/sui.min.css">
    <script src="js/sui.min.js"></script>

</head>
<body>
<div id="myCarousel2" class="sui-carousel slide">
    <ol class="carousel-indicators">
        <li data-target="#myCarousel2" data-slide-to="0" class="active"></li>
        <li data-target="#myCarousel2" data-slide-to="1"></li>
        <li data-target="#myCarousel2" data-slide-to="2"></li>
    </ol>
    <div class="carousel-inner">
        <div class="active item"><img src="img/1.jpg">
            <div class="carousel-caption">
                <h4>标题</h4>
                <p>内容内容内容内容内容内容内容内容内容内容内容内容</p>
            </div>
        </div>
        <div class="item"><img src="img/2.jpg">
            <div class="carousel-caption">
                <h4>标题</h4>
                <p>内容内容内容内容内容内容内容内容内容内容内容内容</p>
            </div>
        </div>
        <div class="item"><img src="img/3.jpg">
            <div class="carousel-caption">
                <h4>标题</h4>
                <p>内容内容内容内容内容内容内容内容内容内容内容内容</p>
            </div>
        </div>
    </div><a href="#myCarousel2" data-slide="prev" class="carousel-control left">‹</a><a href="#myCarousel2" data-slide="next" class="carousel-control right">›</a>
</div>
<div class="sui-btn-group">
    <button id="btn-cycle" class="sui-btn btn-bordered btn-primary">播放</button>
    <button id="btn-pause" class="sui-btn btn-bordered btn-primary">暂停</button>
    <button id="btn-slide2" class="sui-btn btn-bordered btn-primary">定位到第2张</button>
    <button id="btn-slide-prev" class="sui-btn btn-bordered btn-primary">上一个</button>
    <button id="btn-slide-next" class="sui-btn btn-bordered btn-primary">下一个</button>
</div>
<script>
    var $carousel = $("#myCarousel2").carousel({
        interval: 2000
    });

    $("#btn-cycle").click(function() {
        $carousel.carousel('cycle');
    });
    $("#btn-pause").click(function() {
        $carousel.carousel('pause');
    });
    $("#btn-slide2").click(function() {
        $carousel.carousel(1);
    });
    $("#btn-slide-prev").click(function() {
        $carousel.carousel('prev');
    });
    $("#btn-slide-next").click(function() {
        $carousel.carousel('next');
    });


</script>
</body>
</html>